/**
  \mainpage
  ETFAna project, Anyang Normal University && IMP-CAS
  \brief analyse the raw data, including data mapping, tracking and PID
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2021-11-22
  \date 2024-06-12 last modified
  \attention
  changelog
  <table>
  <tr>  <th>Date         <th>Author      <th>Description                   </tr>
  <tr>  <td>2021-11-22   <td>Asia Sun    <td>file created                  </tr>
  </table>

  \copyright Copyright (c) 2021-2024 Anyang Normal U. && IMP-CAS with LGPLv3 LICENSE
*/

#include <cstdlib>
#include <iostream>
#include "ETFRun.h"
#include "ETFParaManager.h"
#include "ETFUserAnaTask.h"
#include "ETFUnpackTask.h"
#include "ETFMsg.h"

using std::cout;
using std::endl;

int main(int argc, char *argv[]){
  ETFParaManager *PARA = ETFParaManager::Instance();
  ETFRun *run = ETFRun::Instance();

  PARA->GetOpt(argc, argv);
  // run->AddTask(new ETFUnpackTask());
  // run->AddTask(new ETFUserAnaTask());

  run->Init(); // init everything
  // run->OnlineSim(10); // in us
  run->Run(PARA->ev0(), PARA->ev1());

  return 0;
} // end the main function
